<?php

namespace app\uni\controller;


use think\Controller;

// 微信公众号封装类
use EasyWeChat\Factory;

class Product extends Controller
{
    public function _initialize()
    {
        $this->TypeModel = model('Product.Type');
        $this->UnitModel = model('Product.Unit');
    }

    // 物品类型列表
    public function types(){
        $data=$this->TypeModel->order('id')->select();

        $this->success('','',$data);
      }
    
    // 物品单位列表
    public function units(){
        $data=$this->UnitModel->order('id')->select();

        $this->success('','',$data);
      }

}
